﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MiniBottles.Models
{
    public class Bottle : Base
    {
        [MaxLength(256, ErrorMessage = "Za długa nazwa. Maksymalna długość to 256 znaków.")]
        [Display(Name = "Nazwa")]
        public string Name { get; set; }
        public string FileName { get; set; }
        
        [Display(Name = "Kolejność")]
        [Range(0, Int32.MaxValue)]
        public int Order { get; set; }

        [Display(Name = "Do wymiany")]
        public bool ToExchange { get; set; }

        [Display(Name = "Ulubiona")]
        public bool IsFavorite { get; set; }

        [Display(Name = "Poszukiwana")]
        public bool IsWanted { get; set; }

        [Required]
        [Display(Name = "Kategoria")]
        public virtual DictCategory DictCategory { get; set; }

        [Display(Name = "Butelka")]
        [MaxLength(256)]
        public string Material{ get; set; }
        [MaxLength(256)]
        [Display(Name = "Alkohol")]
        public string Alcohol { get; set; }
        [MaxLength(256)]
        [Display(Name = "Pojemność")]
        public string Capacity { get; set; }
        [MaxLength(256)]
        [Display(Name = "Karaj pochodzenia")]
        public string Country { get; set; }
        [MaxLength(1000)]
        [Display(Name = "Opis")]
        public string Description { get; set; }
        
    }

   
}